package com.ljc.db.backend.utils;

public class Types {
    /**
     * 将数据地址【页号+偏移量】转换为long型的uid，高32位存放页号，低32位存放偏移量
     */
    public static long addressToUid(int pgno, short offset) {
        long u0 = (long)pgno;
        long u1 = (long)offset;
        return u0 << 32 | u1;
    }
}
